# 元组只能读，不能改变 列表可读可改变
# 1.创建元组
# a = ()
# print(type(a))
# b = tuple()
# print(type(b))

# 2.初始化元组
# a = (1, 2, 3, 4)
# print(a)

# 3.元组可以存放不同的类型
# a = (1, 2, 'kk', True)
# print(a)

# 4.下标访问
# a = (1, 2, 3, 4)
# # print(a[1])
# # print(2 in a)
# # print(a.index(2))
# # print(a[100])
# print(a[-2])
# print(len(a))

# 5.切片操作
# a = (1, 2, 3, 4)
# print(a[1:3])

# 6.遍历
# a = (1, 2, 3, 4)
# for e in a:
#     print(e)

# a[1] = 5 error
# 7.没有这些类似的方法
# a.insert(1,2)
# a.append(6)
# a.pop()
# a.remove(2)
# a.extend(5)

# 8.拼接，创建新的元组
# a = (1, 2, 3, 4)
# b = (5, 6, 7, 8)
# c = a + b
# print(c)
# print(a + b)
# print(a)
# print(b)

# 9.进行多元赋值时，是通过元组的方式进行的
def getPoint():
    x = 10
    y = 20
    return x, y


x,y = getPoint()
print(x, y)
print(type(getPoint()))




